const app = getApp();
Page({
    data:{
        id:'',
        avatar:'',
        origin:'',
        nation:'',
        men:'',
        skill:'',
        time:'',
        city:'',
        project:[],
        name:''
    },
    onLoad:function(option){
        this.setData({
            id:option.id
        });
        app.axios('/info/'+this.data.id,'GET',response=>{
            if(response){
                this.setData({
                    name:response.name,
                    avatar:response.avatar,
                    origin:response.origin,
                    nation:response.nation,
                    men:response.men,
                    skill:response.skill,
                    time:response.time,
                    city:response.city,
                    project:response.project
                })
            }
        });
    }
});
